"""
超级管理员相关模式
"""
from pydantic import BaseModel, EmailStr
from typing import Optional
from datetime import datetime


class CreateSuperAdminRequest(BaseModel):
    """创建超级管理员请求"""
    employee_no: str
    name: str
    password: str
    phone: Optional[str] = None
    email: Optional[str] = None


class SuperAdminResponse(BaseModel):
    """超级管理员响应"""
    id: int
    employee_no: str
    name: str
    department_name: str
    position: str
    phone: Optional[str] = None
    email: Optional[str] = None
    status: str
    created_at: Optional[str] = None


class ResetPasswordRequest(BaseModel):
    """重置密码请求"""
    employee_no: str
    new_password: str
